package com.snail.feign;

import com.snail.feign.fallback.SysUserClientFallback;
import com.snail.model.pojo.user.SysUser;
import com.snail.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Monica
 * @description
 * @date 2025/8/20 19:40
 */
@FeignClient(name = "learn-user",fallback = SysUserClientFallback.class)
public interface SysUserClient {
    @GetMapping("/user/sysUser/getUserById/{id}")
    public Result<SysUser> getUserById(@PathVariable Long id);
}
